# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flask-babel
_pkgname=Flask-Babel
pkgver=0.12.2
pkgrel=4
pkgdesc='Adds i18n/l10n support to Flask applications'
url='https://pypi.org/project/Flask-Babel/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-flask' 'python2-babel' 'python2-pytz'
         'python2-jinja' 'python2-speaklater')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('c43bf5cf6c66e3a8a52298f52bd6300cf0b0c53a1f0fb5862b1bcf8a9800ea0e043c9f85125bb9eb5c281a3c0583c63f0f9653792204883a6f82080547b37104')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

